<?php
class Pageley_Serializer_Converter_Timestamp implements Pageley_Serializer_Converter {

    public function convertIntoFormat($value) {
        return $value !== null ? $value->format() : null;
    }

    public function convertFromFormat($value) {
        return $value !== null ? Pageley_Util_Timestamp::parse($value) : null;
    }
}